package com.driving.code.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;


public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问题编号
     */
    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    /**
     * 问题题目
     */
    private String questionTopic;

    /**
     * 选项A的内容
     */
    private String questionA;

    /**
     * 选项B的内容
     */
    private String questionB;

    /**
     * 选项C的内容
     */
    private String questionC;

    /**
     * 选项D的内容
     */
    private String questionD;

    /**
     * 选项E的内容
     */
    private String questionE;

    /**
     * 选项F的内容
     */
    private String questionF;

    /**
     * 选项G的内容
     */
    private String questionG;

    /**
     * 问题的答案
     */
    private String questionAnswer;

    @TableField(exist = false)
    private Answer answer;

    /**
     * 问题的解释
     */
    private String questionExplain;

    /**
     * 问题的图片
     */
    private String questionImage;

    /**
     * 问题所属科目
     */
    private String questionClassify;

    /**
     * 问题回答错误的数量
     */
    private Integer questionError;

    /**
     * 问题的类别
     */
    private Integer questionType;

    /**
     * 是否作为考试问题
     */
    private Boolean questionTest;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date created;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modified;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;

    public Question(String questionTopic, String questionA, String questionB, String questionC, String questionD, String questionAnswer,String questionClassify,Integer questionType,String questionImage,String questionExplain) {
        this.questionTopic = questionTopic;
        this.questionA = questionA;
        this.questionB = questionB;
        this.questionC = questionC;
        this.questionD = questionD;
        this.questionAnswer = questionAnswer;
        this.questionClassify=questionClassify;
        this.questionImage=questionImage;
        this.questionType=questionType;
        this.questionExplain=questionExplain;

    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public String getQuestionTopic() {
        return questionTopic;
    }

    public void setQuestionTopic(String questionTopic) {
        this.questionTopic = questionTopic;
    }

    public String getQuestionA() {
        return questionA;
    }

    public void setQuestionA(String questionA) {
        this.questionA = questionA;
    }

    public String getQuestionB() {
        return questionB;
    }

    public void setQuestionB(String questionB) {
        this.questionB = questionB;
    }

    public String getQuestionC() {
        return questionC;
    }

    public void setQuestionC(String questionC) {
        this.questionC = questionC;
    }

    public String getQuestionD() {
        return questionD;
    }

    public void setQuestionD(String questionD) {
        this.questionD = questionD;
    }

    public String getQuestionE() {
        return questionE;
    }

    public void setQuestionE(String questionE) {
        this.questionE = questionE;
    }

    public String getQuestionF() {
        return questionF;
    }

    public void setQuestionF(String questionF) {
        this.questionF = questionF;
    }

    public String getQuestionG() {
        return questionG;
    }

    public void setQuestionG(String questionG) {
        this.questionG = questionG;
    }

    public String getQuestionAnswer() {
        return questionAnswer;
    }

    public void setQuestionAnswer(String questionAnswer) {
        this.questionAnswer = questionAnswer;
    }

    public Answer getAnswer() {
        return answer;
    }
    public void setAnswer(Answer answer) {
        this.answer = answer;
    }

    public String getQuestionExplain() {
        return questionExplain;
    }

    public void setQuestionExplain(String questionExplain) {
        this.questionExplain = questionExplain;
    }

    public String getQuestionImage() {
        return questionImage;
    }

    public void setQuestionImage(String questionImage) {
        this.questionImage = questionImage;
    }

    public String getQuestionClassify() {
        return questionClassify;
    }

    public void setQuestionClassify(String questionClassify) {
        this.questionClassify = questionClassify;
    }

    public Integer getQuestionError() {
        return questionError;
    }

    public void setQuestionError(Integer questionError) {
        this.questionError = questionError;
    }

    public Boolean getQuestionTest() {
        return questionTest;
    }

    public void setQuestionTest(Boolean questionTest) {
        this.questionTest = questionTest;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Question{" +
                "questionId=" + questionId +
                ", questionTopic='" + questionTopic + '\'' +
                ", questionA='" + questionA + '\'' +
                ", questionB='" + questionB + '\'' +
                ", questionC='" + questionC + '\'' +
                ", questionD='" + questionD + '\'' +
                ", questionE='" + questionE + '\'' +
                ", questionF='" + questionF + '\'' +
                ", questionG='" + questionG + '\'' +
                ", questionAnswer='" + questionAnswer + '\'' +
                ", questionExplain='" + questionExplain + '\'' +
                ", questionImage='" + questionImage + '\'' +
                ", questionClassify='" + questionClassify + '\'' +
                ", questionError=" + questionError +
                ", questionType=" + questionType +
                ", questionTest=" + questionTest +
                ", created=" + created +
                ", modified=" + modified +
                ", deleted=" + deleted +
                '}';
    }
}
